package com.ncloud.resman.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ncloud.resman.entity.ExportFire;
import com.ncloud.resman.entity.Firewall;
import com.ncloud.resman.mapper.FirewallMapper;
import com.ncloud.resman.service.DeviceFirewallService;

/**
 * user:sundelong  date:2017年8月24日
 */
@Service
public class DeviceFirewallServiceImpl implements DeviceFirewallService {
	@Autowired
	private FirewallMapper firewallMapper;
	@Override
	public Firewall getDeviceFirewallByDeviceId(Long deviceId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int insertDeviceFirewall(Firewall firewall) {
		return firewallMapper.insertFirewall(firewall);
	}

	@Override
	public int updateDeviceFirewall(Firewall firewall) {
		return firewallMapper.updateFirewall(firewall);
	}

	@Override
	public List<ExportFire> getFireInfoBySnNum(String snNum) {
		return firewallMapper.getFireInfoBySnNum(snNum);
	}

}
